﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>兼职乐-快乐生活，快乐工作，尽在兼职乐</title>
<link type="text/css" rel="stylesheet" href="__MYINDEXCSS__common.css" />
<link type="text/css" rel="stylesheet" href="__MYINDEXCSS__home.css" />
<script src="__MYINDEXJS__jquery.js"></script>
<script src="__MYINDEXJS__lepin_ajax.js"></script>
<script src="__MYINDEXJS__lepin.js"></script>
<script src="__MYINDEXJS__zepto.min.js"></script>
<script src="__MYINDEXJS__frozen.js"></script>  
</head>
<body>
<!--头部-->
<div class="head">
    <div class="wrap">
            <span class="fr">
                <a href="{:url('index/login/index')}">{:empty($Think.session.tel)?'登录':'欢迎, '.$Think.session.tel}</a>丨
                <a class="mr15" href="{:url('index/login/showreg')}">注册</a>
                <a href="index.php?act=about"   >关于我们</a>
            </span>
        <div class="mr20 city">
            <i id='prov' prov="{$cityid}">{$citytitle}</i>
            <span>[切换城市]</span>
            <em></em>
            <div class="choice">
                {volist name='city' id='v'}
                <a href="{:url('index/index/switchcity',['id'=>$v.id])}">{$v.name}</a>
                {/volist}
            </div>
        </div>
     </div>
</div>



<!--导航-->
    <div class="nav">
        <div class="wrap clearfix">
            <a class="fl" href="{:url('index/index/index')}"><img src="__MYINDEXPIC__logo.jpg"></a>
            <div class="navcont fl" style="width:400px;">
                                <a  href="{:url('index/index/index')}">全部兼职</a>
                <!--<a  href="index.php?act=seller">企业入口</a>-->
                <a href="{:url('index/user/index')}">个人中心</a>
                <a href="{:url('index/company/index')}">企业入口</a>
                            </div>
                        <a class="fabu fl" href="">发布职位信息</a>
                        <div class="search fr">
                <form method="get" name="frm" action="index.php?act=job_list">
                    <input class="txt fl" style="width:170px;" type="text" value="" name="keyword" id="keyword" placeholder="请输入搜索内容">
                    <input class="btn fl" type="button" value="搜索" onclick="document.forms['frm'].submit()">
                </form>

            </div>
        </div>
    </div>



{block name='nav'}
<div class="wrap sel">
    <div class="fenlei clearfix">
        <div class="title fl fontS16">兼职属性</div>
        <div class="type fl " id='property'>
            <!-- class="cur"  -->
            {volist name='property' id='v'}
            <a href="javascript:void(0);" cateid='{$v.id}' catename='{$v.name}' class='{:in_array($v.id,$isselect)==true?'cur':''}' >{$v.name}</a>
            {/volist}
        </div>
    </div>

    <div class="fenlei clearfix form">
        <div class="title fl fontS16">兼职类型</div>
        <div class="type fl">
            {volist name='type' id='v'}
            <a href="javascript:void(0);" cateid='{$v.id}' catename='{$v.name}' class='{:in_array($v.id,$isselect)==true?'cur':''}'>{$v.name}</a>
            {/volist}
          </div>
    </div>

    <div class="fenlei clearfix ">
        <div class="title fl fontS16">区域选择</div>
        <div class="type fl regional">
            {volist name='area' id='v'}
            <a href="javascript:void(0);" cateid='{$v.id}' catename='{$v.name}'   class='{:in_array($v.id,$isselect)==true?'cur':''}'>{$v.name}</a>
            {/volist}
        </div>
    </div>
</div>
{/block}

{block name='js'}
    <script>

  


        $(function(){
            var ids = [];
            var str = '';
            var a= $(".sel a").hasClass('cur');
            if(!a)
            {  
             $(".sel a[catename='全部']").addClass('cur') 
                .siblings().removeClass('cur')
                .end(); 
            }
            $('.sel a').click(function(){    
                    str = '';
                  $(this).addClass('cur') 
                        .siblings().removeClass('cur')
                        .end();  

                   // $(this).siblings("a[catename='全部'").addClass('cur') 
                   //  .siblings().removeClass('cur')
                   //  .end(); 
                    //获取被选中的标签
                $('.sel a[class="cur"]').each(function(key,value){
                     // ids[key] = $(this).attr('cateid');
                     str += $(this).attr('cateid')+'B';
                });

                $.ajax({
                    url:"/index/index/catefind",
                    type:'post',
                    data:{"ids":str},
                    dataType:"json",
                    success:function(rs){
                        //5,14,25

                        var all = rs;
                        var province = $('#prov').attr('prov');
                        all = all+'A'+province+'A'+str;;
                        window.location.href = '{:url("index/index/findposition")}?all='+ all;
                    }
                });    
            })   
        })
        
    </script>
{/block}

{block name='main'}
<div class="wrap">
    <div class="menu01">
        <a class="fr" href="index.php?act=job_list">更多兼职<i class="ml5 fr"></i></a>
        <span><em class="mr5"></em>最新兼职</span>
    </div>
            

        {volist name='position' id='value' empty='$empty' key='k'}
             <a class="list" href="{:url('index/index/message',['id'=>$value.position_companyid])}" id='self'>
                <div class="title fontS16 clearfix">
                    <span class="fontC01 fl">[{$value.position_name}]</span>
                    <span class="fl">{$value.position_name}</span>
                    <i class="yan"></i>
                    <i class="guan"></i>
                    <i class="bao"></i> 
                    <span class="fontC02 fr">{$value.position_payway}</span> 
                </div>
                <div class="cont clearfix">
                    <ul class="fl">
                        <li>工作时间：{:date('Y-m-d',$value.position_start)}至{:date('Y-m-d',$value.position_end)}</li>   
                        <li>工作需求：{$value.position_require}</li>  
                        <li>工作地点：{$value.position_place}</li> 
                        <li>招聘人数：{$value.position_num}</li>
                        <li>发布平台：{$companyname[$k-1]}</li> 
                        <li>发布时间：{:date('Y-m-d',$value.position_publish)}</li>                                                                
                    </ul>
                    <div class="btn  bm  fr mt30">
                         报名中
                    </div>
                </div>
            </a>
        {/volist}
</div>
{/block}


<div class="foot mt30">
	<div class="wrap center">©2015 河北乐聘人力资源服务有限公司 丨 兼职乐，专属兼职神器 丨 冀ICP备15013734</div>
</div>
<div class="gotop"></div>
<script type="text/javascript" language="javascript" src="__MYINDEXJS__jquery-1.7.2-min.js"></script>
<script type="text/javascript" language="javascript" src="__MYINDEXJS__common.js"></script>
<script type="text/javascript">
	var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1268697534'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s22.cnzz.com/z_stat.php%3Fid%3D1268697534%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));
</script>

</body>
</html>

